package com.heima.utils.threadlocal;

import com.heima.model.user.pojos.ApUser;

/**
 * @author feng js
 */

public class AppThreadLocalUtils {
    private static final ThreadLocal<ApUser> USER_THREAD_LOCAL = new ThreadLocal<>();

    public static void setUser(ApUser apUser) {
        USER_THREAD_LOCAL.set(apUser);
    }

    public static ApUser getUser() {
       return USER_THREAD_LOCAL.get();
    }
}
